package l2

import (
	"zstackgo/pkg/header/message"
)

var (
	_ L2NetworkMessage = new(APIDeleteL2NetworkMsg)
)

/**
 * @api delete l2Network
 * @category l2Network
 * @cli
 * @httpMsg {
 * "org.zstack.header.network.l2.APIDeleteL2NetworkMsg": {
 * "l2NetworkUuid": "ce3602cff6484ca09765ee3dd2af81c2",
 * "deleteMode": "Permissive",
 * "session": {
 * "uuid": "1d8cfba780314ab498bfcdda72357527"
 * }
 * }
 * }
 * @msg {
 * "org.zstack.header.network.l2.APIDeleteL2NetworkMsg": {
 * "l2NetworkUuid": "ce3602cff6484ca09765ee3dd2af81c2",
 * "deleteMode": "Permissive",
 * "session": {
 * "uuid": "1d8cfba780314ab498bfcdda72357527"
 * },
 * "timeout": 1800000,
 * "id": "eeec6b87abbf4325851e1751e8c87fb2",
 * "serviceId": "api.portal"
 * }
 * }
 * @result see :ref:`APIDeleteL2NetworkEvent`
 * @since 0.1.0
 */
// @Action(category = L2NetworkConstant.ACTION_CATEGORY)
// @RestRequest(
//         path = "/l2-networks/{uuid}",
//         method = HttpMethod.DELETE,
//         responseClass = APIDeleteL2NetworkEvent.class
// )
type APIDeleteL2NetworkMsg struct {
	*message.APIDeleteMessage

	Uuid string
}

func (amsg *APIDeleteL2NetworkMsg) GetL2NetworkUuid() string {
	return amsg.Uuid
}
